package com.hehua.web.decorator.demo1;

public class Decorator extends Component{

    protected Component component;

    public void setComponent(Component component) {
        this.component = component;
    }

    @Override
    public void Operation() {
        if (null != component){
            component.Operation();
        }
    }
}
